package cn.lls.service.impl;

import cn.lls.entity.company.CompanyBaseEntity;
import cn.lls.dao.CompanyBaseDao;
import cn.lls.service.ICompanyBaseService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author 划水艺术家
 * @since 2022-11-15
 */
@Service
public class CompanyBaseServiceImpl extends ServiceImpl<CompanyBaseDao, CompanyBaseEntity> implements ICompanyBaseService {

    /*
    更改公司状态
   */
    @Override
    public int changeCompanyStatus(Long companyId, int status){
        return this.baseMapper.changeCompanyStatus(companyId, status);
    }

    /*
   获取公司邮箱
    */
    @Override
    public String getCompanyEmail(Long companyId){
        return this.baseMapper.getCompanyEmail(companyId);
    }
}
